/**
 * blank_1: Generic padding.
 */

/* ==reset== */

html,
body {
	height: 100%;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	/*
	  Sets the font stack to fonts known to work properly with the above letter
	  and word spacings. See: https://github.com/yui/pure/issues/41/
	  The following font stack makes Pure Grids work on all known environments.
	  * FreeSans: Ships with many Linux distros, including Ubuntu
	  * Arimo: Ships with Chrome OS. Arimo has to be defined before Helvetica and
		Arial to get picked up by the browser, even though neither is available
		in Chrome OS.
	  * Droid Sans: Ships with all versions of Android.
	  * Helvetica, Arial, sans-serif: Common font stack on OS X and Windows.
	  */
	font-family: FreeSans, Arimo, Helvetica, Arial, sans-serif;
}
iframe {
	border: none;
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: 0;
}
a {
	text-decoration: none;
	color: $brand-primary;
	&:hover,
	&:active,
	&:focus{
		color: lighten($brand-primary, 7%);
	}
}
a img {
	border: none;
}
.clearfix{
	@include clearfix;
}
/**
 * ==LAYOUTS==
 */

/* ====================Document stream layout====================== */

.panel {
	position: relative;
	padding: 5px 0 0 5px;
	/* blank_1 */
	&.hasMenu{
		padding-top: 39px;
		/* blank_1*2 + menu's height + blank_1 */
	}
	//divider inside the panel
	hr{
		border-bottom: none;
		margin: 0 5px 5px 0;
		opacity: 0.4;
	}
}
.row {
	position: relative;
	margin-bottom: 5px;
	/* blank_1 */
	margin-right: 5px;
	/* blank_1 */
	/*	background: #f0f0f0;*/
	min-height: 30px;

	@include clearfix;
}
/* ====================Float stream layout ======================== */

.left {
	float: left;
	margin-left: 0;
	margin-right: 5px;
	/* blank_1 */
}
.right {
	float: right;
	margin-right: 0;
	margin-left: 5px;
	/* blank_1 */
}
.h-max {
	width: 100%;
}
/* ====================Position stream layout====================== */

/**
 * Absolute position
 */

.dock {
	position: absolute;
	float: none;
	&.top,
	&.bottom{
		padding-left: 5px;
	}
}
/**
 * Fixed position.
 *
 * Fixing DOMs mainly to localization by fixed position.
 * To SCREEN !!!
 */

.fix {
	position: fixed;
	float: none;
	top: 0;
	left: 0;
}
/**
* Size & Position.
*/
.dock,
.fix{
	&.right{
		right: 0;
		left: auto;
		border-left: 5px solid $title-bg;
	}
	&.left{
		left: 0;
		right: auto;
		border-right: 1px solid $title-bg;
	}
	&.top{
		top: 0;
		bottom: auto;
	}
	&.bottom{
		top: auto;
		bottom: 0;
	}
	&.v-max{
		top: 0;
		bottom: 0;
	}
	&.h-max{
		right: 0;
		left: 0;
		width: auto;
	}
}

/* == MODULES == */

/* === INPUTs ===*/

input,
select,
textarea {
	padding: 5px;
	height: 30px;
	box-sizing: border-box;
	width: 100%;
	border: 1px solid $input-border;
	background-color: $input-bg;
}
input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: $input-border-focus;
	@include single-transition(border);
}
input[disabled],
select[disabled],
textarea[disabled] {
	cursor: not-allowed;
	background-color: $input-disable-bg;
	color: $input-disable-text;
}
input[readonly],
select[readonly],
textarea[readonly] {
	background-color: $input-disable-bg;
	color: $input-disable-text;
}

label {
	display: inline-block;
	font-size: 87.5%;
	font-weight: bold;
	position: relative;
	cursor: pointer;
	color: #444;
	padding-right: 1.5em;
	//placeholder align to right
	.caption{
		position: absolute;
		bottom: 5px;
		right: 10px;
		color: $input-text;
	}
}

label:only-child{
	width: 100%;
	padding-right: 0;
}

textarea{
	resize: none;
	height: 6em;
}
// fix for -moz-
select optgroup{
	font-style: normal;
}

/** === TITLE bar === */

.title {
	margin: 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 34px;
	line-height: 34px;
	/* Eq this.height */
	padding: 0 5px;
	color: $brand-color;
	background-color: $title-bg;
	font-weight: bold;
}
/* == SideTOOOLS == */
.toolbar{
	margin: 0;
	padding: 0;
	list-style: none;
	li{
		position: relative;
	}
}

ul.toolbar li,
ul.toolbar.left li{
	margin-right: 5px;
	float: left;
}
ul.toolbar.right li {
	float: right;
	margin-right: 0;
	margin-left: 5px;
	&:last-child{
		margin-left: 0;
	}
}
ul.toolbar li.hr {
	border-left: 1px solid $panel-divider;
	min-height: 30px;
}
ul.toolbar.dock {
	float: none;
}
/* == HANDLE == */

.handle {
	cursor: pointer;
	color: #fafafa;
	line-height: 32px;
	text-align: center;
	background-color: $title-bg;
	&.left{
		left: -13px;
	}
	&.right{
		right: -13px;
	}
	&.left,
	&.right{
		width: 10px;
		height: 30px;
		top: 50%;
		margin-top: -15px;
		background-image:url("../assets/testweb_icon.svg") ;
		background-position: -910px 0;
		background-repeat: no-repeat;
	}
}



.status.row {
	font-size: 87.5%;
	min-height: 12px;
	line-height: 1;
	margin-top: 5px;
}
/* ==Bar module== */

.bar {
	width: 600px;
	min-height: 300px;
	border: solid $title-bg;
	background: $panel-bg;
	color: $panel-text;
	border-width: 0 5px 5px 5px;
}

.bar .title {
	cursor: move;
}



/* ID */

#OC {
	width: 450px;
	@include single-transition(right, .2s, ease);
	background: $panel-bg;
	color: $panel-text;
}
#OC.close{
	right: -455px;
}
.dock.bottom.h-max {
	background: $panel-bg;
}
#mask {
	height: 100%;
	width: 100%;
	position: fixed;
	z-index: 0;
	background-color: transparent;
	display: none;
}
.mask {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	z-index: 1;
}
.mask.v {
	display: block;
}
.highlight {
	position: absolute;
	z-index: 10;
	background: rgba(255, 255, 66, 0.7);
}
#id {
	z-index: 2;
	position: relative;
}

#axes{
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height: 100%;
	background: rgba(0,0,0,0.1);
}
#axes-x,#axes-y{
	position: absolute;
	margin: 0;
	border-style: dotted;
	border-color: #444;
	border-width: 0px;
}
#axes-x{
	left:30px;
	height: 100%;
	width: 0;
	border-left-width: 1px;
}
#axes-y{
	top: 40px;
	width: 100%;
	height: 0;
	border-top-width: 1px;
}
#control{
	background: transparent;
	border: none;
	position: absolute;
	top:-9999px;
}
.area{
	position: absolute;
	z-index: 10;
	border: 2px solid blue;
}

fieldset{
	legend{
		padding: 0 2px;
	}
}
/**
   * == COLORS ==
   */
.alert {
	background-color: $brand-danger;
}
.success {
	background-color: $brand-success;
}
.warning {
	background-color: $brand-warning;
}
.secondary {
	background-color: $brand-info;
}
.primary {
	background-color: $brand-primary;
}

// for ng draggable
[ng-draggable] {
	top: 0 !important;
	left: 0 !important;
	cursor: move !important;
}

.context.menu.open {
	display: block;
}